feat(agent): Add job cleanup playbook task in update_agent#6554
Open
20vikash wants to merge 3 commits into
Open
feat(agent): Add job cleanup playbook task in update_agent#655420vikash wants to merge 3 commits into
20vikash wants to merge 3 commits into
Conversation
Contributor
|
| Filename | Overview |
|---|---|
| press/playbooks/roles/update_agent/tasks/main.yml | Adds a new Ansible task to run agent setup agent-db-cleanup after the agent update step, following the same pattern as existing setup tasks in the playbook. |
Sequence Diagram
sequenceDiagram
participant Ansible
participant Agent as Agent (frappe user)
participant Cron as Crontab
Ansible->>Agent: git fetch + checkout + reset
Ansible->>Agent: pip install requirements
Ansible->>Agent: pip install -e (install agent)
Ansible->>Agent: agent setup database
Ansible->>Agent: agent run-patches
Ansible->>Agent: agent update
Ansible->>Agent: agent setup agent-db-cleanup
Agent->>Cron: register DB cleanup crontab entry
Ansible->>Agent: set ownership of logs
Ansible->>Agent: ensure supervisor processes started
Reviews (6): Last reviewed commit: "fix(agent): Move cleanup task after agen..." | Re-trigger Greptile
b4f149c to
a1331f5
Compare
Member
|
@greptileai re-review |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This calls Agent's agent-db-cleanup cli to setup DB cleanup crontab.
Related PR
Agent